<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>分类修改</title>
    <link rel="stylesheet" href="/libs/layui/css/layui.css">
    <!-- jquery放在layui.js的上面,layui依赖于jquery -->
    <!-- 引入jQuery -->
    <script src="/libs/jquery.js"></script>
    <!-- 引入layui.js -->
    <script src="/libs/layui/layui.js"></script>
    <!-- 引入axios -->
    <script src="/libs/axios.js"></script>

</head>

<body>

    <form class="layui-form">
        <!-- 隐藏域保存要修改的数据id -->
        <input type="hidden" name="id" value="{{cate.id}}">
        <div class="layui-form-item">
            <label class="layui-form-label">分类名称</label>
            <div class="layui-input-block">
                <input type="text" name="cate_name" placeholder="请输入分类名称" lay-verify="required|checkCateName" autocomplete="off" class="layui-input" value="{{cate.cate_name}}" onblur="checkCateNameUniq()">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-block">
                <input type="text" name="sort" value="{{cate.sort}}" placeholder="请输入排序" autocomplete="off" lay-verify="checkSort" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="formDemo">修改</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>

</body>

</html>

<!-- 引入页面的js文件 -->
<script src="/js/cate/cate_update.js"></script>